<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<c:if test="${not empty menuList }" >
  <table class="table-form table-bordered table-tr-td" style="width:98%!important">
          <tbody>
         
          <c:forEach items="${menuList }" var="m">
          <tr  >
              <td  >
              <c:if test="${empty m.menuPermission }" >
              <input type="checkbox" value="" 
              <c:if test = "${empty m.menuPermission }">disabled </c:if> />
              </c:if>
              <c:if test="${not empty m.menuPermission }" >
              <input type="checkbox" name="permissionId" value="${m.menuPermission.id }"
               <c:out value="${'1' eq m.menuPermission.checkbox?'checked':'' } " />
               <c:if test = "${empty m.menuPermission }">disabled </c:if>
               onclick="pMenuClick(this)" />
              </c:if>	
              	${m.name }
              	
              </td>
              <td colspan="8" style="white-space: normal;">
              <c:if test="${not empty m.operationPermissionList }" >
               <c:forEach items="${m.operationPermissionList }" var="o" >
                  <input type="checkbox" name="permissionId" value="${o.id }" 
                  <c:out value="${'1' eq o.checkbox?'checked':'' }" />
                  <c:if test = "${empty m.menuPermission }">disabled='disabled' </c:if>
                  onclick="operationClick(this);"
                   />
                  ${o.name } &nbsp;&nbsp;
                </c:forEach>  
              </c:if>    
              </td>

          </tr>
          </c:forEach>
        
          </tbody>
     </table>
</c:if>
<c:if test="${empty menuList }" >
<span style="color:red;text-aglin:middle;">请先配置菜单权限及功能权限</span>
</c:if>